/* ============================================================
   TOP WATCH REPAIR — twr-animations.css
   ============================================================ */

/* ── Keyframes ── */
@keyframes twr-scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

@keyframes twr-fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes twr-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes twr-slide-right {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes twr-gold-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0); }
  50%       { box-shadow: 0 0 0 8px rgba(201,168,76,0.12); }
}

@keyframes twr-rotate-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes twr-counter-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes twr-shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

@keyframes twr-draw-line {
  from { stroke-dashoffset: 500; }
  to   { stroke-dashoffset: 0; }
}

@keyframes twr-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

@keyframes twr-border-travel {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* ── Utility Animation Classes ── */
.twr-anim-fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.twr-anim-fade-up.twr-in-view {
  opacity: 1;
  transform: translateY(0);
}

.twr-anim-fade-in {
  opacity: 0;
  transition: opacity 0.7s ease;
}

.twr-anim-fade-in.twr-in-view { opacity: 1; }

.twr-anim-slide-right {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.twr-anim-slide-right.twr-in-view {
  opacity: 1;
  transform: translateX(0);
}

/* ── Stagger Delays ── */
.twr-delay-1 { transition-delay: 0.1s !important; }
.twr-delay-2 { transition-delay: 0.2s !important; }
.twr-delay-3 { transition-delay: 0.3s !important; }
.twr-delay-4 { transition-delay: 0.4s !important; }
.twr-delay-5 { transition-delay: 0.5s !important; }

/* ── Hero Entry Animation ── */
.twr-hero-content .twr-label {
  animation: twr-fade-up 0.8s ease 0.1s both;
}

.twr-hero-content .twr-hero-eyebrow {
  animation: twr-fade-up 0.8s ease 0.2s both;
}

.twr-hero-content h1 {
  animation: twr-fade-up 0.9s ease 0.35s both;
}

.twr-hero-content .twr-hero-subtitle {
  animation: twr-fade-up 0.8s ease 0.5s both;
}

.twr-hero-content .twr-hero-actions {
  animation: twr-fade-up 0.8s ease 0.65s both;
}

/* ── Gold Orbit Decoration ── */
.twr-orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.08);
  pointer-events: none;
}

.twr-orbit-ring-1 {
  width: 400px;
  height: 400px;
  right: -80px;
  top: 20%;
  animation: twr-rotate-slow 40s linear infinite;
}

.twr-orbit-ring-2 {
  width: 280px;
  height: 280px;
  right: 20px;
  top: 28%;
  animation: twr-rotate-slow 28s linear infinite reverse;
  border-style: dashed;
}

/* ── Animated Counter ── */
.twr-stat-number {
  animation: twr-counter-up 0.6s ease both;
}

/* ── Card Hover Lift ── */
.twr-hover-lift {
  transition: transform var(--twr-transition), box-shadow var(--twr-transition);
}

.twr-hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}

/* ── Gold Shimmer on Hover ── */
.twr-shimmer-hover {
  position: relative;
  overflow: hidden;
}

.twr-shimmer-hover::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(201,168,76,0.08),
    transparent
  );
  transition: left 0.5s ease;
}

.twr-shimmer-hover:hover::after { left: 140%; }

/* ── SVG Gear Background ── */
.twr-gear-bg {
  position: absolute;
  pointer-events: none;
  opacity: 0.04;
}

/* ── Smooth Underline ── */
.twr-underline-gold {
  position: relative;
  display: inline-block;
}

.twr-underline-gold::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--twr-gold);
  transition: width var(--twr-transition);
}

.twr-underline-gold:hover::after { width: 100%; }

/* ── Loading Spinner ── */
.twr-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(201,168,76,0.2);
  border-top-color: var(--twr-gold);
  border-radius: 50%;
  animation: twr-rotate-slow 0.8s linear infinite;
  display: inline-block;
}

/* ── Page Transition ── */
.twr-page-enter {
  animation: twr-fade-in 0.4s ease;
}

/* ── Pulse Gold Button ── */
.twr-btn-pulse {
  animation: twr-gold-pulse 2.5s ease-in-out infinite;
}

/* ── Float ── */
.twr-float { animation: twr-float 4s ease-in-out infinite; }

/* ── Decorative horizontal rule ── */
.twr-hr-gold {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--twr-gold), transparent);
  margin: 48px 0;
}
