/* Floating Fabric Animation */
@keyframes floatFabric {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) rotate(5deg);
  }
  75% {
    transform: translateY(-10px) rotate(-5deg);
  }
}

.floating-fabric {
  position: absolute;
  width: 100px;
  height: 120px;
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(46, 204, 113, 0.05) 100%);
  border-radius: 8px;
  animation: floatFabric 6s ease-in-out infinite;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  z-index: -1;
}

.fabric-1 {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.15) 0%, transparent 100%);
}

.fabric-2 {
  top: 40%;
  right: 15%;
  animation-delay: 2s;
  animation-duration: 7s;
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.1) 0%, transparent 100%);
  width: 80px;
  height: 100px;
}

.fabric-3 {
  bottom: 30%;
  left: 20%;
  animation-delay: 4s;
  animation-duration: 8s;
  background: linear-gradient(135deg, rgba(155, 89, 182, 0.1) 0%, transparent 100%);
  width: 60px;
  height: 90px;
}

/* Washing Machine Spin Animation */
@keyframes washSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.washing-spin {
  position: relative;
  display: inline-block;
}

.washing-spin::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  border: 3px dashed rgba(52, 152, 219, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: washSpin 4s linear infinite;
}

/* Water Drop Animation */
@keyframes dropFall {
  0% {
    transform: translateY(-100px) scale(0.5);
    opacity: 0;
  }
  50% {
    transform: translateY(0) scale(1);
    opacity: 0.7;
  }
  100% {
    transform: translateY(100px) scale(0.5);
    opacity: 0;
  }
}

.water-drop {
  position: absolute;
  width: 15px;
  height: 20px;
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.3) 0%, rgba(86, 204, 242, 0.5) 100%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  animation: dropFall 3s infinite;
  filter: blur(1px);
}

/* Soap Bubble Pop Animation */
@keyframes soapBubble {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.soap-bubble {
  position: absolute;
  width: 40px;
  height: 40px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.8) 0%, rgba(174, 214, 241, 0.3) 100%);
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5);
  animation: soapBubble 2s infinite;
}

/* Hanger Swing Animation */
@keyframes hangerSwing {
  0%, 100% {
    transform: rotate(-10deg);
  }
  50% {
    transform: rotate(10deg);
  }
}

.hanger-swing {
  position: absolute;
  width: 30px;
  height: 40px;
  border: 3px solid rgba(46, 204, 113, 0.3);
  border-top: none;
  border-radius: 0 0 20px 20px;
  animation: hangerSwing 3s ease-in-out infinite;
}

/* Steam Rising Animation */
@keyframes steamRise {
  0% {
    transform: translateY(0) scale(0.5);
    opacity: 0;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-100px) scale(1.2);
    opacity: 0;
  }
}

.steam-cloud {
  position: absolute;
  width: 40px;
  height: 20px;
  background: rgba(255,255,255,0.8);
  border-radius: 50%;
  filter: blur(10px);
  animation: steamRise 4s infinite;
}

/* Laundry Load Animation */
@keyframes laundryLoad {
  0% {
    transform: translateX(-100%) rotate(-10deg);
    opacity: 0;
  }
  100% {
    transform: translateX(100%) rotate(10deg);
    opacity: 0;
  }
}

.laundry-load {
  position: absolute;
  width: 80px;
  height: 60px;
  background: linear-gradient(135deg, rgba(155, 89, 182, 0.2) 0%, rgba(241, 196, 15, 0.1) 100%);
  border-radius: 10px;
  animation: laundryLoad 15s linear infinite;
}

/* Interactive Button Animation */
@keyframes buttonPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.6);
  }
}

.btn-primary:hover {
  animation: buttonPulse 0.6s ease-in-out;
}

/* Service Card Hover Animation */
.service-card {
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.service-card:hover .service-icon {
  animation: washSpin 3s linear infinite;
}

/* Price Tag Animation */
@keyframes priceTagFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.pricing-card.featured .plan-price {
  animation: priceTagFloat 3s ease-in-out infinite;
}

/* Progress Bar Animation */
@keyframes progressFill {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

.progress-bar {
  height: 4px;
  background: linear-gradient(90deg, #3498db 0%, #2ecc71 100%);
  animation: progressFill 2s ease-in-out infinite;
}

/* Loading Spinner (Laundry Theme) */
@keyframes laundrySpin {
  0% {
    transform: rotate(0deg);
    border-top-color: #3498db;
  }
  25% {
    border-top-color: #2ecc71;
  }
  50% {
    border-top-color: #9b59b6;
  }
  75% {
    border-top-color: #f39c12;
  }
  100% {
    transform: rotate(360deg);
    border-top-color: #3498db;
  }
}

.laundry-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(52, 152, 219, 0.1);
  border-top: 4px solid #3498db;
  border-radius: 50%;
  animation: laundrySpin 1.5s linear infinite;
}

/* Notification Popup */
@keyframes slideInRight {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.notification {
  animation: slideInRight 0.5s ease-out;
}

/* Text Typing Animation */
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink {
  50% { border-color: transparent }
}

.typing-text {
  overflow: hidden;
  border-right: 3px solid #3498db;
  white-space: nowrap;
  animation: typing 3.5s steps(40, end), blink .75s step-end infinite;
}

/* Scroll Indicator Animation */
@keyframes scrollBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

.scroll-indicator {
  animation: scrollBounce 2s ease-in-out infinite;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .floating-fabric,
  .water-drop,
  .soap-bubble,
  .hanger-swing,
  .steam-cloud,
  .laundry-load {
    display: none;
  }
}