/* KCM Packers and Movers - Custom Styles */
/* Tailwind CSS loaded via CDN in index.php */

/* ===== Scroll Reveal Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}
.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}
.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* ===== Staggered Children ===== */
.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.stagger-children.active > *:nth-child(1) {
  transition-delay: 0.1s;
  opacity: 1;
  transform: translateY(0);
}
.stagger-children.active > *:nth-child(2) {
  transition-delay: 0.2s;
  opacity: 1;
  transform: translateY(0);
}
.stagger-children.active > *:nth-child(3) {
  transition-delay: 0.3s;
  opacity: 1;
  transform: translateY(0);
}
.stagger-children.active > *:nth-child(4) {
  transition-delay: 0.4s;
  opacity: 1;
  transform: translateY(0);
}
.stagger-children.active > *:nth-child(5) {
  transition-delay: 0.5s;
  opacity: 1;
  transform: translateY(0);
}
.stagger-children.active > *:nth-child(6) {
  transition-delay: 0.6s;
  opacity: 1;
  transform: translateY(0);
}
.stagger-children.active > *:nth-child(7) {
  transition-delay: 0.7s;
  opacity: 1;
  transform: translateY(0);
}
.stagger-children.active > *:nth-child(8) {
  transition-delay: 0.8s;
  opacity: 1;
  transform: translateY(0);
}

/* ===== Floating Animation ===== */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* ===== Pulse Ring Animation ===== */
@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}
.pulse-ring::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 9999px;
  border: 2px solid #dc2626;
  animation: pulse-ring 1.5s ease-out infinite;
}

/* ===== Glassmorphism Card ===== */
.glass-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease;
}
.glass-card:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(220, 38, 38, 0.4);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* ===== Multi-Step Form ===== */
.form-step {
  display: none;
  animation: fadeSlideIn 0.4s ease forwards;
}
.form-step.active {
  display: block;
}
@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.step-indicator .step-dot {
  transition: all 0.3s ease;
}
.step-indicator .step-dot.active {
  background: #dc2626;
  transform: scale(1.3);
}
.step-indicator .step-dot.completed {
  background: #16a34a;
}
.step-indicator .step-line {
  transition: background 0.3s ease;
}
.step-indicator .step-line.active {
  background: #dc2626;
}

/* ===== Infinite Scroll Carousel ===== */
.infinite-scroll-track {
  display: flex;
  animation: infiniteScroll 30s linear infinite;
}
.infinite-scroll-track:hover {
  animation-play-state: paused;
}
@keyframes infiniteScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.infinite-scroll-reverse {
  animation-direction: reverse;
}

/* ===== Gallery Horizontal Slider ===== */
.gallery-slider-track {
  display: flex;
  gap: 1rem;
  animation: galleryScroll 45s linear infinite;
}
.gallery-slider-track:hover {
  animation-play-state: paused;
}
@keyframes galleryScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ===== Logo Slider ===== */
.logo-slider-track {
  display: flex;
  animation: logoScroll 25s linear infinite;
}
.logo-slider-track:hover {
  animation-play-state: paused;
}
@keyframes logoScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ===== Accordion ===== */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    padding 0.4s ease;
}
.accordion-content.open {
  max-height: 500px;
}

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

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #dc2626;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #b91c1c;
}

/* ===== CTA Glow Effect ===== */
.cta-glow {
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.4);
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
}
.cta-glow:hover {
  box-shadow: 0 0 40px rgba(220, 38, 38, 0.6);
  transform: translateY(-2px);
}

/* ===== Card Hover Lift ===== */
.card-lift {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.card-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* ===== Counter Animation ===== */
.counter {
  font-variant-numeric: tabular-nums;
}

/* ===== Gallery Item ===== */
.gallery-item {
  overflow: hidden;
}
.gallery-item img {
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.1);
}

/* ===== Process Line ===== */
.process-line {
  position: relative;
}
.process-line::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 50%;
  width: calc(100% - 48px);
  height: 2px;
  background: linear-gradient(90deg, #dc2626, #ea580c);
  transform: translateX(-50%);
}
@media (max-width: 768px) {
  .process-line::before {
    display: none;
  }
}

/* ===== Hero Background — Premium Dark ===== */
.hero-gradient {
  background-color: #0d0d0d;
  position: relative;
}
/* Dot-grid texture layer */
.hero-gradient::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}
/* Red directional light — top-left edge only */
.hero-gradient::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 0% 0%, rgba(220, 38, 38, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 100% 100%, rgba(220, 38, 38, 0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ===== Tagline Icon Animation ===== */
@keyframes taglineBounce {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-3px) scale(1.1);
  }
}
.tagline-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: taglineBounce 2s ease-in-out infinite;
}

/* ===== Decorative Dot Pattern ===== */
.dot-pattern {
  background-image: radial-gradient(circle, rgba(220, 38, 38, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* ===== Animated Section Divider ===== */
@keyframes dividerGrow {
  from {
    width: 0;
  }
  to {
    width: 60px;
  }
}
.section-divider {
  height: 3px;
  background: linear-gradient(90deg, #dc2626, #ea580c);
  border-radius: 2px;
  margin: 0 auto;
  animation: dividerGrow 0.8s ease forwards;
}

/* ===== Decorative Floating Dots ===== */
@keyframes floatDot {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.4;
  }
  50% {
    transform: translateY(-8px) scale(1.2);
    opacity: 0.8;
  }
}
.float-dot {
  animation: floatDot 3s ease-in-out infinite;
}

/* ===== Rotating Icon ===== */
@keyframes rotateSlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.rotate-slow {
  animation: rotateSlow 20s linear infinite;
}

/* ===== Quote Modal ===== */
.quote-modal-backdrop {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.quote-modal-backdrop.quote-modal-open {
  opacity: 1;
}
.quote-modal-panel {
  opacity: 0;
  transform: scale(0.95) translateY(20px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}
.quote-modal-open .quote-modal-panel {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Modal Step Indicators */
.modal-step-indicator .modal-step-dot {
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.modal-step-indicator .modal-step-dot.active {
  background: #dc2626;
  transform: scale(1.4);
}
.modal-step-indicator .modal-step-dot.completed {
  background: #16a34a;
}
.modal-step-indicator .modal-step-line {
  transition: background 0.3s ease;
}
.modal-step-indicator .modal-step-line.active {
  background: #dc2626;
}

/* Modal Form Steps */
.modal-form-step {
  display: none;
  animation: fadeSlideIn 0.35s ease forwards;
}
.modal-form-step.active {
  display: block;
}

/* ===== Mobile Top Bar Ticker ===== */
@keyframes tickerScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.ticker-track {
  display: inline-flex;
  animation: tickerScroll 18s linear infinite;
  will-change: transform;
}
.ticker-track:hover {
  animation-play-state: paused;
}

/* ===== Premium Top Bar Animations ===== */
@keyframes topbarSlideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.topbar-animate {
  animation: topbarSlideDown 0.6s ease-out forwards;
}

/* ===== Shimmer Effect ===== */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
.shimmer-border {
  position: relative;
}
.shimmer-border::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.3), transparent);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
  z-index: -1;
}
