/* =========================================
   Brave Icon Packers and Movers Group - Custom Styles
   ========================================= */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Gradient text utility */
.gradient-text {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 50%, #b91c1c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-dark {
  background: rgba(23, 23, 23, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Hover lift effect */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
}

/* Card shine effect */
.card-shine {
  position: relative;
  overflow: hidden;
}
.card-shine::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}
.card-shine:hover::before {
  left: 100%;
}

/* Hero floating blobs */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}
.float-anim {
  animation: float 6s ease-in-out infinite;
}
.float-anim-delay {
  animation: float 8s ease-in-out infinite 2s;
}
.float-anim-slow {
  animation: float 10s ease-in-out infinite 4s;
}

/* Marquee animation for testimonials */
@keyframes marquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
  will-change: transform;
}
.marquee-track:hover {
  animation-play-state: paused;
}

/* Fade edges for marquee containers */
.marquee-fade {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
}

/* Partner logo marquee */
@keyframes partner-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.partner-track {
  display: flex;
  width: max-content;
  animation: partner-marquee 30s linear infinite;
}

/* Gradient shift for CTA banner */
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.gradient-animate {
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
}

/* Timeline line drawing */
.timeline-line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: linear-gradient(to bottom, #ef4444, #dc2626);
}

/* Pulse animation for map markers */
@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}
.pulse-marker::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.4);
  animation: pulse-ring 2s ease-out infinite;
}

/* Image placeholder styling */
.img-placeholder {
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* FAQ accordion transition */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}
.faq-content:not(.hidden) {
  max-height: 500px;
}

/* Counter styling */
.counter-number {
  font-variant-numeric: tabular-nums;
}

/* Button ripple effect */
.btn-ripple {
  position: relative;
  overflow: hidden;
}
.btn-ripple::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}
.btn-ripple:active::after {
  width: 300px;
  height: 300px;
}

/* Service card icon hover */
.service-card:hover .service-icon {
  background-color: #dc2626;
  color: white;
  transform: scale(1.1) rotate(5deg);
}

/* Process step number glow */
.step-number {
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.2);
}

/* Focus visible for accessibility */
*:focus-visible {
  outline: 2px solid #dc2626;
  outline-offset: 2px;
}

/* Hero typing-cursor blink */
@keyframes hero-cursor-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
#hero-cursor {
  animation: hero-cursor-blink 1s steps(1, end) infinite;
}

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