/* ============================================================
   Han Cleaning - Animations Stylesheet (hc-animations.css)
   ============================================================ */

/* Hero floating shapes */
.hc-hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.04;
  pointer-events: none;
  animation: hc-float 8s ease-in-out infinite;
}

.hc-hero-shape-1 {
  width: 400px;
  height: 400px;
  background: white;
  top: -100px;
  right: 5%;
  animation-delay: 0s;
}

.hc-hero-shape-2 {
  width: 250px;
  height: 250px;
  background: white;
  bottom: 10%;
  right: 25%;
  animation-delay: 3s;
}

.hc-hero-shape-3 {
  width: 180px;
  height: 180px;
  background: var(--hc-accent);
  top: 30%;
  right: 10%;
  opacity: 0.06;
  animation-delay: 1.5s;
}

@keyframes hc-float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(3deg); }
  66% { transform: translateY(10px) rotate(-2deg); }
}

/* Pulse animation for badges */
.hc-pulse {
  animation: hc-pulse-anim 2s infinite;
}

@keyframes hc-pulse-anim {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52, 168, 83, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(52, 168, 83, 0); }
}

/* Stagger children animation */
.hc-stagger-children > * {
  opacity: 1;
  transform: translateY(24px);
  transition: all 0.6s ease;
}

.hc-stagger-children.visible > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0s; }
.hc-stagger-children.visible > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.hc-stagger-children.visible > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.hc-stagger-children.visible > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
.hc-stagger-children.visible > *:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }
.hc-stagger-children.visible > *:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 0.5s; }

/* Card hover lift */
.hc-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hc-lift:hover {
  transform: translateY(-6px);
  box-shadow: var(--hc-shadow-xl);
}

/* Shine effect on buttons */
.hc-btn-primary::after,
.hc-btn-accent::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}

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

.hc-btn-primary:hover::after,
.hc-btn-accent:hover::after {
  left: 150%;
}

/* Page transition */
.hc-page-enter {
  animation: hc-page-enter-anim 0.5s ease;
}

@keyframes hc-page-enter-anim {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Image hover zoom container */
.hc-img-hover-zoom {
  overflow: hidden;
}

.hc-img-hover-zoom img {
  transition: transform 0.6s ease;
}

.hc-img-hover-zoom:hover img {
  transform: scale(1.06);
}

/* Number counter animation */
.hc-counter-value {
  display: inline-block;
}

/* Nav link underline slide effect */
.hc-scrolled .hc-nav-link {
  position: relative;
}

.hc-scrolled .hc-nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--hc-accent);
  transition: all 0.3s ease;
  border-radius: 1px;
}

.hc-scrolled .hc-nav-link:hover::after,
.hc-scrolled .hc-nav-link.active::after {
  left: 12px;
  right: 12px;
  background: var(--hc-accent);
}

/* Shimmer loading effect */
@keyframes hc-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.hc-shimmer {
  background: linear-gradient(90deg, var(--hc-neutral-100) 25%, var(--hc-neutral-200) 50%, var(--hc-neutral-100) 75%);
  background-size: 200% 100%;
  animation: hc-shimmer 1.5s infinite;
}

/* Rotating icon on hover */
.hc-rotate-hover:hover i {
  transform: rotate(15deg);
  display: inline-block;
}

/* Soft glow on focus */
.hc-form-control:focus {
  box-shadow: 0 0 0 4px rgba(26, 58, 92, 0.1);
}

/* Success state for form */
.hc-form-control.success {
  border-color: var(--hc-accent);
  background: rgba(52, 168, 83, 0.03);
}

/* Gallery lightbox fade */
.hc-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.hc-lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.hc-lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--hc-radius-md);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.hc-lightbox.open img { transform: scale(1); }

.hc-lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--hc-transition);
}

.hc-lightbox-close:hover { background: rgba(255,255,255,0.25); }

/* Smooth reveal for quiz result */
.hc-quiz-result-enter {
  animation: hc-result-enter 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes hc-result-enter {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Score progress animation */
.hc-score-progress-bar {
  height: 8px;
  background: var(--hc-neutral-200);
  border-radius: 4px;
  overflow: hidden;
  margin: 8px 0;
}

.hc-score-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--hc-accent), var(--hc-accent-light));
  border-radius: 4px;
  width: 0;
  transition: width 1.5s ease;
}
