/* ===================================
   ZARMIQUO — Animations
   zm-animations.css
   =================================== */

/* ─── Floating Shapes ─────────────────── */
.zm-hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.zm-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
}

.zm-shape-1 {
  width: 400px;
  height: 400px;
  background: var(--zm-gold-light);
  top: -100px;
  right: -80px;
  animation: zm-float 8s ease-in-out infinite;
}

.zm-shape-2 {
  width: 280px;
  height: 280px;
  background: var(--zm-teal-light);
  bottom: -60px;
  left: 10%;
  animation: zm-float 10s ease-in-out infinite 2s;
}

.zm-shape-3 {
  width: 180px;
  height: 180px;
  background: #fff;
  top: 30%;
  left: 50%;
  animation: zm-float 7s ease-in-out infinite 1s;
  opacity: 0.04;
}

.zm-shape-4 {
  width: 60px;
  height: 60px;
  background: var(--zm-gold);
  top: 20%;
  right: 30%;
  animation: zm-float 5s ease-in-out infinite 0.5s;
  opacity: 0.12;
  border-radius: 12px;
  transform: rotate(45deg);
}

.zm-shape-5 {
  width: 40px;
  height: 40px;
  background: var(--zm-teal);
  bottom: 30%;
  right: 20%;
  animation: zm-float 6s ease-in-out infinite 3s;
  opacity: 0.15;
  border-radius: 50%;
}

@keyframes zm-float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-18px) rotate(3deg); }
  66% { transform: translateY(8px) rotate(-2deg); }
}

@keyframes zm-float-alt {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

/* ─── Fade & Slide Entrances ──────────── */
.zm-fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.zm-fade-up.zm-visible {
  opacity: 1;
  transform: translateY(0);
}

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

.zm-fade-in.zm-visible {
  opacity: 1;
}

.zm-slide-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.zm-slide-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

/* ─── Count Up Animation ──────────────── */
.zm-countup-number {
  display: inline-block;
}

/* ─── Pulse Ring ──────────────────────── */
@keyframes zm-pulse-ring {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(200,169,110,0.4); }
  70% { transform: scale(1); box-shadow: 0 0 0 12px rgba(200,169,110,0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(200,169,110,0); }
}

.zm-pulse {
  animation: zm-pulse-ring 2.5s infinite;
}

/* ─── Shimmer Loading ─────────────────── */
@keyframes zm-shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.zm-shimmer {
  background: linear-gradient(90deg, #f0ede8 25%, #e8e4de 50%, #f0ede8 75%);
  background-size: 400px 100%;
  animation: zm-shimmer 1.5s infinite;
}

/* ─── Progress Bar Animation ──────────── */
@keyframes zm-progress {
  from { width: 0%; }
}

.zm-progress-animated {
  animation: zm-progress 1s ease forwards;
}

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

.zm-hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--zm-shadow-md);
}

/* ─── Gradient Text Shimmer ───────────── */
@keyframes zm-gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.zm-gradient-text {
  background: linear-gradient(135deg, var(--zm-gold-light), #fff, var(--zm-gold-light));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: zm-gradient-shift 4s ease infinite;
}

/* ─── Scale on Hover ──────────────────── */
.zm-hover-scale {
  transition: transform var(--zm-transition);
}

.zm-hover-scale:hover {
  transform: scale(1.02);
}

/* ─── Border Shimmer ──────────────────── */
@keyframes zm-border-glow {
  0%, 100% { border-color: rgba(200,169,110,0.3); }
  50% { border-color: rgba(200,169,110,0.7); }
}

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

/* ─── Typing Cursor ───────────────────── */
@keyframes zm-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.zm-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--zm-gold-light);
  vertical-align: text-bottom;
  animation: zm-blink 1s step-end infinite;
  margin-left: 2px;
}

/* ─── Accordion Animation ─────────────── */
.zm-accordion-enter {
  animation: zm-accordion-down 0.3s ease;
}

@keyframes zm-accordion-down {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Tooltip ─────────────────────────── */
.zm-tooltip-wrapper {
  position: relative;
  display: inline-block;
}

.zm-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--zm-navy);
  color: #fff;
  font-family: var(--zm-font-ui);
  font-size: 0.75rem;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 100;
}

.zm-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--zm-navy);
}

.zm-tooltip-wrapper:hover .zm-tooltip {
  opacity: 1;
}

/* ─── Scroll Progress Bar ─────────────── */
.zm-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--zm-gold), var(--zm-teal));
  z-index: 10000;
  transition: width 0.1s linear;
}

/* ─── Ripple ──────────────────────────── */
@keyframes zm-ripple {
  to { transform: scale(2.5); opacity: 0; }
}

.zm-btn:active::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  animation: zm-ripple 0.5s ease;
}

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