/*
 * OriginKit & Animate.css Advanced Catchy Hero Animation Engine for Mariam Riaz
 * Inspired by OriginKit.dev & Animate.style
 */

/* ======================================================
   1. HERO CANVAS & INTERACTIVE AMBIENT GLOW
   ====================================================== */
.mr-hero-canvas-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

#mr-hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-spotlight-beam {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 117, 214, 0.22) 0%, rgba(201, 167, 232, 0.08) 45%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 0.5s ease;
  z-index: 1;
  filter: blur(40px);
}

/* Subtle Modern Dot / Grid Matrix */
.originkit-grid-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(rgba(168, 117, 214, 0.2) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 50%, transparent 95%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 50%, transparent 95%);
  z-index: 1;
}

/* Glowing Morphing Ambient Mesh Blobs */
.mesh-blob-1 {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(168, 117, 214, 0.38) 0%, rgba(201, 167, 232, 0.18) 50%, transparent 70%);
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  filter: blur(55px);
  animation: morphBlob1 14s ease-in-out infinite alternate, floatBlob1 18s ease-in-out infinite;
  z-index: 0;
}

.mesh-blob-2 {
  position: absolute;
  bottom: -15%;
  left: -5%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(112, 67, 155, 0.28) 0%, rgba(243, 236, 248, 0.5) 50%, transparent 70%);
  border-radius: 60% 40% 30% 70% / 50% 30% 70% 60%;
  filter: blur(65px);
  animation: morphBlob2 16s ease-in-out infinite alternate, floatBlob2 20s ease-in-out infinite;
  z-index: 0;
}

.mesh-blob-3 {
  position: absolute;
  top: 35%;
  left: 40%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(201, 167, 232, 0.3) 0%, rgba(168, 117, 214, 0.15) 60%, transparent 80%);
  border-radius: 50% 50% 40% 60% / 60% 40% 60% 40%;
  filter: blur(50px);
  animation: morphBlob1 12s ease-in-out infinite alternate-reverse, floatBlob3 15s ease-in-out infinite;
  z-index: 0;
}

@keyframes morphBlob1 {
  0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
  33% { border-radius: 60% 40% 30% 70% / 50% 30% 70% 60%; }
  66% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  100% { border-radius: 50% 50% 40% 60% / 40% 60% 50% 50%; }
}

@keyframes morphBlob2 {
  0% { border-radius: 60% 40% 30% 70% / 50% 30% 70% 60%; }
  50% { border-radius: 30% 70% 60% 40% / 60% 40% 50% 50%; }
  100% { border-radius: 50% 50% 60% 40% / 40% 60% 40% 60%; }
}

@keyframes floatBlob1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-45px, 40px) scale(1.1); }
}

@keyframes floatBlob2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(55px, -45px) scale(1.08); }
}

@keyframes floatBlob3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-35px, -35px) scale(0.92); }
}

/* ======================================================
   2. ROTATING CIRCULAR TEXT BADGE (ICONIC ANIMATION)
   ====================================================== */
.th-circle-txt-wrap {
  position: relative;
  width: 130px;
  height: 130px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.th-circle-txt-wrap .circle {
  animation: rotateInfinite 15s linear infinite;
  width: 100%;
  height: 100%;
}

.th-circle-txt-wrap .th-icontext {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #70439B, #A875D6);
  border-radius: 50%;
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(112, 67, 155, 0.4);
}

@keyframes rotateInfinite {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ======================================================
   3. DYNAMIC TYPED TEXT ROTATOR & BLINK CURSOR (SINGLE LINE ONLY)
   ====================================================== */
.mr-typed-text {
  display: inline-block !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
  border-right: 3px solid #A875D6;
  padding-right: 6px;
  animation: blinkCursor 0.8s step-end infinite;
  color: #70439B;
  font-weight: 800;
  font-size: clamp(1.3rem, 3.8vw, 2.7rem) !important;
  line-height: 1.2 !important;
  letter-spacing: -0.01em;
}

@media (max-width: 991px) {
  .mr-typed-text {
    font-size: clamp(1.2rem, 4.8vw, 1.85rem) !important;
  }
}

@media (max-width: 576px) {
  .mr-typed-text {
    font-size: clamp(1.05rem, 5.2vw, 1.45rem) !important;
  }
}

@media (max-width: 380px) {
  .mr-typed-text {
    font-size: clamp(0.92rem, 4.4vw, 1.15rem) !important;
    letter-spacing: -0.02em !important;
  }
}

@media (max-width: 330px) {
  .mr-typed-text {
    font-size: 0.86rem !important;
    letter-spacing: -0.03em !important;
    padding-right: 4px !important;
  }
}

@keyframes blinkCursor {
  from, to { border-color: transparent; }
  50% { border-color: #A875D6; }
}

/* ======================================================
   4. FLOATING LEVITATING BADGES & 3D PHOTO AURA
   ====================================================== */
.animate-float-slow {
  animation: floatLevitation 5s ease-in-out infinite;
}

.animate-float-reverse {
  animation: floatLevitationReverse 6s ease-in-out infinite;
}

.animate-pulse-subtle {
  animation: pulseSubtle 3s ease-in-out infinite;
}

@keyframes floatLevitation {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(1.2deg); }
}

@keyframes floatLevitationReverse {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(14px) rotate(-1.2deg); }
}

@keyframes pulseSubtle {
  0%, 100% { transform: scale(1); box-shadow: 0 6px 20px rgba(168, 117, 214, 0.25); }
  50% { transform: scale(1.04); box-shadow: 0 10px 30px rgba(168, 117, 214, 0.45); }
}

/* Photo Glowing Aura Frame */
.mr-hero-photo-wrap {
  position: relative;
  display: inline-block;
}

.mr-hero-photo-wrap::before {
  content: '';
  position: absolute;
  inset: -12px;
  background: linear-gradient(135deg, #70439B 0%, #A875D6 50%, #C9A7E8 100%);
  border-radius: 28px;
  z-index: 1;
  opacity: 0.35;
  filter: blur(20px);
  animation: pulseAura 4s ease-in-out infinite alternate;
}

@keyframes pulseAura {
  0% { transform: scale(0.96); opacity: 0.25; }
  100% { transform: scale(1.05); opacity: 0.5; }
}

.mr-hero-photo-wrap img {
  position: relative;
  z-index: 2;
  border-radius: 24px;
  border: 4px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 50px rgba(23, 20, 25, 0.12);
}

/* ======================================================
   5. LUXURY ANIMATED BUTTONS & MICRO-INTERACTIONS
   ====================================================== */
.th-primary-btn, .mr-btn-primary, .mr-btn-animated {
  position: relative !important;
  overflow: hidden !important;
  background: linear-gradient(135deg, #A875D6 0%, #70439B 100%) !important;
  color: #FFFFFF !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px !important;
  box-shadow: 0 6px 22px rgba(112, 67, 155, 0.35) !important;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
  z-index: 1 !important;
}

.th-primary-btn::before, .mr-btn-primary::before, .mr-btn-animated::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: linear-gradient(135deg, #70439B 0%, #A875D6 100%) !important;
  opacity: 0 !important;
  transition: opacity 0.35s ease !important;
  z-index: -1 !important;
  border-radius: 50px !important;
}

.th-primary-btn:hover::before, .mr-btn-primary:hover::before, .mr-btn-animated:hover::before {
  opacity: 1 !important;
}

.th-primary-btn::after, .mr-btn-primary::after, .mr-btn-animated::after {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -120% !important;
  width: 60% !important;
  height: 100% !important;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent) !important;
  transform: skewX(-25deg) !important;
  transition: none !important;
  z-index: 2 !important;
}

.th-primary-btn:hover::after, .mr-btn-primary:hover::after, .mr-btn-animated:hover::after {
  left: 160% !important;
  transition: all 0.75s cubic-bezier(0.19, 1, 0.22, 1) !important;
}

.th-primary-btn:hover, .mr-btn-primary:hover, .mr-btn-animated:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 12px 30px rgba(112, 67, 155, 0.55), 0 0 20px rgba(168, 117, 214, 0.4) !important;
  color: #FFFFFF !important;
}

.th-primary-btn i, .mr-btn-primary i, .mr-btn-outline i, .mr-btn-animated i {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  display: inline-block !important;
}

.th-primary-btn:hover i, .mr-btn-primary:hover i, .mr-btn-outline:hover i, .mr-btn-animated:hover i {
  transform: translateX(5px) !important;
}

/* Continuous Pulse for Hero / Main CTAs */
.btn-pulse-glow {
  animation: pulseGlowBtn 2.8s infinite alternate !important;
}

@keyframes pulseGlowBtn {
  0% {
    box-shadow: 0 6px 20px rgba(112, 67, 155, 0.35);
  }
  100% {
    box-shadow: 0 8px 30px rgba(168, 117, 214, 0.6), 0 0 15px rgba(201, 167, 232, 0.5);
  }
}

/* Service Card Inquiry Button Styling */
.mr-service-inquire-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 180px !important;
  padding: 10px 18px !important;
  background: linear-gradient(135deg, #70439B 0%, #8E54C7 100%) !important;
  color: #FFFFFF !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(112, 67, 155, 0.28) !important;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
  white-space: nowrap !important;
}

.mr-service-inquire-btn span,
.mr-service-inquire-btn i {
  color: #FFFFFF !important;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.mr-service-inquire-btn:hover {
  background: linear-gradient(135deg, #5A337F 0%, #70439B 100%) !important;
  color: #FFFFFF !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 22px rgba(112, 67, 155, 0.42) !important;
}

.mr-service-inquire-btn:hover i {
  transform: translateX(4px) !important;
}

/* ======================================================
   6. TEXT GRADIENT SHIMMER EFFECT
   ====================================================== */
.mr-gradient-shimmer {
  background: linear-gradient(
    90deg, 
    #70439B 0%, 
    #A875D6 25%, 
    #C9A7E8 50%, 
    #A875D6 75%, 
    #70439B 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShimmer 5s linear infinite;
}

@keyframes textShimmer {
  to {
    background-position: 200% center;
  }
}

/* Status Pulsing Dot */
.originkit-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: #A875D6;
  border-radius: 50%;
  position: relative;
}

.live-dot::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: rgba(168, 117, 214, 0.6);
  animation: pingDot 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes pingDot {
  75%, 100% {
    transform: scale(2.4);
    opacity: 0;
  }
}
