/* ============================================
   ANIMATIONS — 3D, Shimmer, Scroll Reveals
   Premium Black & Gold Effects
   ============================================ */

/* ---------- Scroll Reveal System ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Stagger children */
.stagger-children .reveal:nth-child(1) { transition-delay: 0.05s; }
.stagger-children .reveal:nth-child(2) { transition-delay: 0.12s; }
.stagger-children .reveal:nth-child(3) { transition-delay: 0.19s; }
.stagger-children .reveal:nth-child(4) { transition-delay: 0.26s; }
.stagger-children .reveal:nth-child(5) { transition-delay: 0.33s; }
.stagger-children .reveal:nth-child(6) { transition-delay: 0.4s; }
.stagger-children .reveal:nth-child(7) { transition-delay: 0.47s; }

/* ---------- Gold Shimmer Effect ---------- */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.shimmer {
  background: linear-gradient(
    110deg,
    #8b6f2a 0%,
    var(--gold) 15%,
    var(--gold-shimmer) 30%,
    #fff4c4 45%,
    var(--gold-shimmer) 60%,
    var(--gold) 75%,
    #8b6f2a 100%
  );
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 5s ease-in-out infinite;
  text-shadow: 0 0 30px rgba(201, 168, 76, 0.15);
}

/* Shimmer on buttons */
@keyframes btn-shimmer {
  0% { left: -60%; }
  50%, 100% { left: 120%; }
}

.btn-shimmer {
  position: relative;
  overflow: hidden;
}

.btn-shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 30%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transform: skewX(-20deg);
  animation: btn-shimmer 4s ease-in-out infinite;
}

/* ---------- 3D Card Hover Effects ---------- */
.card-3d {
  perspective: 1000px;
}

.card-3d-inner {
  transition: transform 0.4s ease;
  transform-style: preserve-3d;
}

.card-3d:hover .card-3d-inner {
  transform: rotateX(2deg) rotateY(-2deg) translateZ(10px);
}

/* 3D Tilt on mouse */
.tilt-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

/* ---------- Gold Glow Pulse ---------- */
@keyframes gold-pulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(201, 168, 76, 0.15);
  }
  50% {
    box-shadow: 0 0 40px rgba(201, 168, 76, 0.3), 0 0 80px rgba(201, 168, 76, 0.1);
  }
}

.gold-pulse {
  animation: gold-pulse 3s ease-in-out infinite;
}

/* ---------- Gold Border Glow ---------- */
@keyframes border-glow {
  0%, 100% {
    border-color: rgba(201, 168, 76, 0.2);
  }
  50% {
    border-color: rgba(201, 168, 76, 0.5);
  }
}

.border-glow {
  animation: border-glow 3s ease-in-out infinite;
}

/* ---------- Floating Animation ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.float {
  animation: float 4s ease-in-out infinite;
}

/* ---------- Counter Animation ---------- */
.counter {
  display: inline-block;
}

/* ---------- Gradient Orbs (Hero BG) ---------- */
@keyframes orb-float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -20px) scale(1.05); }
  50% { transform: translate(-10px, 20px) scale(0.98); }
  75% { transform: translate(20px, 10px) scale(1.02); }
}

@keyframes orb-float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-25px, 15px) scale(1.03); }
  66% { transform: translate(15px, -25px) scale(0.97); }
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero-orb--1 {
  width: 500px;
  height: 500px;
  top: -10%;
  right: -5%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.08) 0%, transparent 70%);
  animation: orb-float-1 12s ease-in-out infinite;
}

.hero-orb--2 {
  width: 400px;
  height: 400px;
  bottom: 10%;
  left: -10%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.05) 0%, transparent 70%);
  animation: orb-float-2 10s ease-in-out infinite;
}

.hero-orb--3 {
  width: 300px;
  height: 300px;
  top: 40%;
  left: 50%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.04) 0%, transparent 70%);
  animation: orb-float-1 15s ease-in-out infinite reverse;
}

/* ---------- Parallax Lines (Decorative) ---------- */
.gold-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.15;
  pointer-events: none;
}

.gold-line--1 {
  width: 300px;
  top: 20%;
  left: -5%;
  transform: rotate(-15deg);
}

.gold-line--2 {
  width: 200px;
  bottom: 30%;
  right: -3%;
  transform: rotate(25deg);
}

/* ---------- Entrance for Hero Elements ---------- */
@keyframes hero-slide-up {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__badge { animation: hero-slide-up 0.6s ease 0.1s both; }
.hero__title { animation: hero-slide-up 0.7s ease 0.2s both; }
.hero__subtitle { animation: hero-slide-up 0.7s ease 0.35s both; }
.hero__phone { animation: hero-slide-up 0.7s ease 0.45s both; }
.hero__ctas { animation: hero-slide-up 0.7s ease 0.5s both; }
.trust-badges { animation: hero-slide-up 0.7s ease 0.65s both; }

/* ---------- Nav Transition ---------- */
@keyframes nav-fade-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.navbar {
  animation: nav-fade-in 0.5s ease 0.1s both;
}

/* ---------- Sparkle / Star Decorative ---------- */
@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0); }
  50% { opacity: 1; transform: scale(1); }
}

.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
}

.sparkle--1 { top: 15%; right: 20%; animation: sparkle 3s ease infinite 0s; }
.sparkle--2 { top: 35%; right: 10%; animation: sparkle 3s ease infinite 0.8s; }
.sparkle--3 { top: 60%; right: 25%; animation: sparkle 3s ease infinite 1.6s; }
.sparkle--4 { top: 25%; right: 35%; animation: sparkle 3s ease infinite 2.4s; }

/* ---------- Smooth Page Transitions ---------- */
.page-enter {
  animation: hero-slide-up 0.5s ease both;
}

/* ---------- Mobile CTA Bar Animation ---------- */
@keyframes slide-up-bar {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.mobile-cta-bar {
  animation: slide-up-bar 0.4s ease 0.8s both;
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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

  .hero__badge,
  .hero__title,
  .hero__subtitle,
  .hero__phone,
  .hero__ctas,
  .trust-badges {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
