/* Homepage Specific Styles */

/* Our Process Section */
.process-step {
  position: relative;
  transition: all 0.3s ease;
}

.process-step:hover {
  transform: translateY(-5px);
}

/* Process Step Animations */
.process-step .group:hover .w-20 {
  animation: pulse 2s infinite;
}

.process-step .group:hover .w-16 {
  animation: bounce 1s ease-in-out;
}

/* Connecting Line Animation */
.process-step .absolute {
  animation: drawLine 2s ease-in-out forwards;
  opacity: 0;
}

.process-step:nth-child(1) .absolute {
  animation-delay: 0.5s;
}

.process-step:nth-child(2) .absolute {
  animation-delay: 1s;
}

.process-step:nth-child(3) .absolute {
  animation-delay: 1.5s;
}

@keyframes drawLine {
  0% {
    width: 0;
    opacity: 0;
  }
  100% {
    width: 100%;
    opacity: 1;
  }
}

/* Process Benefits Hover Effects */
.process-benefits .w-16 {
  transition: all 0.3s ease;
}

.process-benefits .w-16:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 25px rgba(138, 0, 0, 0.2);
}

/* Disable scroll-in animations: visible by default */
.process-step {
  opacity: 1;
  transform: none;
  transition: none;
}

.process-step.animate-in {
  opacity: 1;
  transform: none;
}

/* Staggered Animation */
.process-step:nth-child(1) {
  transition-delay: 0.1s;
}

.process-step:nth-child(2) {
  transition-delay: 0.2s;
}

.process-step:nth-child(3) {
  transition-delay: 0.3s;
}

.process-step:nth-child(4) {
  transition-delay: 0.4s;
}

/* Process Benefits Grid Animation */
.process-benefits > div {
  opacity: 1;
  transform: none;
  transition: none;
}

.process-benefits > div.animate-in {
  opacity: 1;
  transform: none;
}

.process-benefits > div:nth-child(1) {
  transition-delay: 0.1s;
}

.process-benefits > div:nth-child(2) {
  transition-delay: 0.2s;
}

.process-benefits > div:nth-child(3) {
  transition-delay: 0.3s;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .process-step .absolute {
    display: none;
  }

  .process-step {
    margin-bottom: 2rem;
  }

  .process-benefits {
    padding: 1.5rem;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .process-step h3 {
    color: #f9fafb;
  }

  .process-step p {
    color: #d1d5db;
  }

  .process-benefits {
    background: #1f2937;
  }
}

/* Mobile Bottom Navigation Styles */
@media (max-width: 1023px) {
  body {
    padding-bottom: 70px; /* Add space for bottom nav */
  }

  .mobile-bottom-nav {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  }

  .mobile-bottom-nav a:active,
  .mobile-bottom-nav button:active {
    transform: scale(0.95);
  }

  .mobile-bottom-nav .cart-count {
    font-size: 10px;
    min-width: 18px;
    height: 18px;
  }
}

/* Print Styles */
@media print {
  .process-step .absolute {
    display: none;
  }

  .process-step {
    break-inside: avoid;
  }

  .mobile-bottom-nav {
    display: none;
  }
}
